package cn.huihui.miniprogram.stuman.database.mapper;

import cn.huihui.miniprogram.stuman.database.model.Exam;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ExamMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Exam record);

    Exam selectByPrimaryKey(Integer id);

    List<Exam> selectAll();

    int updateByPrimaryKey(Exam record);

    List<Exam> selectByStudentId(@Param("studentId") String studentId);
}